﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Home.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" MetaKeywords="产品首页-上海众承精密机床有限公司 " MetaDescription="上海众承精密机床有限公司,产品首页" %>
<%@ Register src="~/Views/Product/ucleft.ascx" tagname="leftpiece" tagprefix="uc1" %>
<%@ Register src="~/Views/Product/ditu.ascx" tagname="leftpiece" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	产品首页-上海众承精密机床有限公司
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div class="ad_show">
<div class="ad_picture"><%--<img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/p_03.gif") %>" width="980px" height="100" title="产品首页" /><uc2:leftpiece  runat="server" ID="leftpiece2"/></div>
--%> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="mFlash6" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" 
width="980" height="150"> 
<param name="movie" value="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/flash/4.swf") %>" /> 
<param name="quality" value="high" /> 
<param name="wmode" value="transparent" /> 
<embed id="mFlash3_6" src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/flash/4.swf") %>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" 
type="application/x-shockwave-flash" width="980" height="150"></embed> 
</object> </div></div>
  <div class="main">
    <div id="main_top">
		  <div id="main_top_left">
			<uc1:leftpiece runat="server" ID="leftpiece1" />
		  </div>
		  <div id="main_right">
          <%if (ViewData["newProduct"] != null)
            {
                foreach (var item in (System.Collections.Generic.IEnumerable<kysec.BLL.Production.DemoData>)ViewData["newProduct"])
                {  %>	
          <div class="new_show">
            <dl>
                    <dt><%if (item.imgPath.HasElements)
                          { %><img src="<%=kysec.CR.MyUrl.WebData.WEBURL + item.imgPath.Element("item").Attribute("url").Value %>" ></a></li>
                        	<%}
                                else
                                {%>
                                <img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/ljxq.gif") %>" alt="" />
                                <%}%></dt>
                     <dd><h1><%=item.title %></h1>
                    <h4>特点：<%=item.features.Length > 50? item.features.Substring(0,50):item.features %></h4>
                    <h4>功能：<%=item.function.Length > 50 ? item.features.Substring(0, 50) : item.features%></h4>                   
                   <a href="/Product/ProductShow?type=1&id=<%=kysec.CR.Common.EncodeByBase64.Encode((item.pid).ToString()) %>">[了解详情]</a><br /> 
                    </dd>
                    </dl>
          </div>
          <div class="clear"></div>
          <%}
            } %>

                    
<div class="xilie_show">
    <ul>
           <%if (ViewData["XilieProduct"] != null)
             {
                 foreach (var item in (System.Collections.Generic.IEnumerable<kysec.BLL.Production.DemoData>)ViewData["XilieProduct"])
                 { %>
            <li><%if (item.imgPath.HasElements)
                          { %><img src="<%=kysec.CR.MyUrl.WebData.WEBURL + item.imgPath.Element("item").Attribute("url").Value %>" ></a>
                        	<%}
                                else
                                {%>
                                <img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/ljxq.gif") %>" alt="" />
                                <%}%>
                               <div class="ff_show"><span><%=item.title.Length > 20 ? item.title.Substring(0, 20) : item.title%></span>
          <%--  <h4>特点：<%=item.features.Length > 20 ? item.features.Substring(0, 20) : item.features%></h4>--%>
            <h4>功能：<%=item.function.Length > 20 ? item.function.Substring(0, 20) : item.function%></h4>
             <a href="/Product/ProductShow?type=1&id=<%=kysec.CR.Common.EncodeByBase64.Encode((item.pid).ToString()) %>">[了解详情]</a></div>
            </li>     <%}
             } %></ul></div>
    </div>
  </div>
</asp:Content>
